﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Heater
{
    class HeaterOne
    {
        private int temperature;
        public void BuildHeater()
        {
            for (int i = 0; i < 100; i++)
            {
                temperature = i;
                if (i > 95)
                {
                    MakdeAlert(i);
                    ShowTemperature(i);
                }
            }
        }
        private void MakdeAlert(int param)
        {
            Console.WriteLine("Alarm:嘀嘀嘀，水已经到达{0}度了！", param);
        }
        private void ShowTemperature(int param)
        {
            Console.WriteLine("Display:水快烧开了，现在是{0}度。", param);
        }
    }
}
